<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>GRI-SEO Registration</title>
<link href="css/main.css" rel="stylesheet" type="text/css">
</head>
<body>
	<%
		String nm = request.getParameter("nm");
		if(nm==null)
			nm="";
		
		String email = request.getParameter("email");
		if(email==null)
			email="";
		
		String un = request.getParameter("un");
		if(un==null)
			un="";
		
		String cmpny = request.getParameter("cmpny");
		if(cmpny==null)
			cmpny="";
		
		String regMessage = (String)session.getAttribute("regMessage");
		if(null == regMessage){
			regMessage = "";
		}
	%>
	<div id="centered">
		<jsp:include page="facelets/image.jsp"></jsp:include>
		<jsp:include page="facelets/topLinkBar.jsp"/>
	<div style="height:300px ; text-align: center;">
	<div style="text-align: center; font-family: verdana;font-weight:bold; font-size: 12px;">
		Register with us and get the daily updates of your website.
	</div>
	<div>
		Fields marked with <font color="red">*</font> are mandatory.
	</div>
	<div style="font-family:verdana; color:red;font-size: 12px; margin-top: 10px;">
		<%= regMessage %>
	</div>
	
	<form name="regForm" method="post" action="registration.do">	
	<div style="margin-top: 25px;">
		<table>
			<tr>
				<td>
					Name<font color="red">*</font>:
				</td>
				<td>
					<input type="text" name="nm" value="<%=nm %>"/>
				</td>
			</tr>
			<tr>
				<td>
					Email<font color="red">*</font>:
				</td>
				<td>
					<input type="text" name="email" value="<%=email %>"/>
				</td>
			</tr>
			<tr>
				<td>
					Username<font color="red">*</font>:
				</td>
				<td>
					<input type="text" name="un" value="<%=un %>"/>
				</td>
			</tr>
			<tr>
				<td>
					Company:
				</td>
				<td>
					<input type="text" name="cmpny" value="<%=cmpny %>"/>
				</td>
			</tr>
			<tr>
				<td>
					Password<font color="red">*</font>:
				</td>
				<td>
					<input type="password" name="pwd" />
				</td>
			</tr>
			<tr>
				<td>
					Confirm Password<font color="red">*</font>:
				</td>
				<td>
					<input type="password" name="cpwd" />
				</td>
			</tr>
			<tr>
				<td colspan="2" style="text-align: right;">
					<input type="submit" value="Register" id="submitReg"/>
				</td>
			</tr>
		</table>
	</div>	
	</form>
	</div>
	<jsp:include page="facelets/footer.jsp"></jsp:include>
	</div>
</body>
</html>